<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/26
 * Time: 9:48
 */

$sql = "select * from tttj.goods where h5_hot = 1 and h5 = 1";
$list = getarrrecord($sql);
foreach($list as $k=>$v){
    $list[$k]['coupon_price'] = $v['price'] - $v['di_cash'];
}
$tpl->assign('list',$list);
$tpl->display("wx/templates/{$tp}.html");

?>